-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] IPyWidgets Backend for TraitsUI #469
base: main
Are you sure you want to change the base?
Conversation
Enh/ipywidgets html editor
This does not quite work yet as the base traitsui/editors/button_editor uses resources from pyface. pyface doesn't implement resource_manager:PyfaceResourceFactory for the ipywidgets backend.
This is convenient but the injected method definitely belongs elsewhere.
Looks like test failure in last commit was because Github was inaccessible - re-started the failed test to be sure. |
@corranwebster -- thanks. there are a couple of things that you might want to refactor:
I'll try to push a few more editors as time permits. |
It looks like IPyWidgets buttons are limited to showing icons from the Font Awesome icon set only, so we probably won't be able to integrate with that. |
Yes, it might be a good idea to take some notes on what we would need better support for and send that to the ipywidgets devs. |
…pywidgets-backend
modified: setup.cfg
Highly experimental, to the point that it possibly should live in its own project, but it can live here for now. To get it to work currently:
pip install ipywidgets
edm install traitsui
pip uninstall traitsui
pip install -e .
Things that still need to be done:
ui_panel.py
codeStandardDialogMenu
because we don't have menu support (and won't), so need to work out how to handle instantiating pyface menus, actions, etc.